<?php

class spTableBody extends spElement
{
	public function __construct( $param=null )
	{
		parent::__construct( "tbody", $param );
		
		if ( isset($param["cols"]) )
			$this->addCols( $param["cols"] );
	}
	
	// FIXME: think this should be addCells NOT addCols
	public function addCols( $ar )
	{
		$row = $this->addRow();
		return $row->addCols( $ar );
	}
	
	public function addRow()
	{
		$row = new spTableRow;
		parent::addChild( $row );
		return $row;
	}
}

?>